import request from '@/utils/request'
// request.post()的返回值是一个Promise对象
export const register = (data) => {
  return request.post('/h5/user/register', data)
}
export const login = (data) => {
  return request.post('/h5/user/login', data)
}
export const getUserInfo = () => {
  return request.get('/h5/user/currentUser')
}
export const logout = () => {
  return request.get('/h5/user/logout')
}
